/**
 * 教师信息卡片弹窗
 * @param teacherId 老师id(personId)
 * @param url
 */
function teacherInfo(teacherId,url){
    url += "/admin/person_getTeacherEvaluation.action?person.id="+teacherId;
    layer.open({
        type: 2,
        title: false,
        closeBtn: 1, //显示关闭按钮
        shade: [0.5],
        area: ['850px', '600px'],
        //offset: 'rb', //右下角弹出
        // time: 2000, //2秒后自动关闭
        anim: 2,
        content: [url, 'yes'], //iframe的url，no代表不显示滚动条
    });
}

function showTeacherInfo(teacherId){
    if (teacherId==null || $.trim(teacherId)===""){
        layer.msg("老师不存在或信息错误",{icon:2});
        return false;
    }
    let url = "/personCtl/teacher/info/"+teacherId+"/0";
    layer.open({
        type: 2,
        title: false,
        closeBtn: 1, //显示关闭按钮
        shade: [0.5],
        area: ['80%', '90%'],
        //offset: 'rb', //右下角弹出
        // time: 2000, //2秒后自动关闭
        anim: 2,
        content: [url, 'yes'], //iframe的url，no代表不显示滚动条
    });
}
